import designItemRich from "./design-item-rich-text.vue"
import designImage from "./design-item-image.vue"
import designCube from "./design-item-cube.vue"
import designText from "./design-item-text.vue"
import designTitle from "./design-item-title.vue"
import designShopBanner from "./design-item-shop-banner.vue"
import designStore from "./design-item-store.vue"
import designSearch from "./design-item-search.vue"
import designNotice from "./design-item-notice.vue"
import designItemLine from "./design-item-line.vue"
import designItemWhitespace from './design-item-whitespace.vue'
import designItemOfflineshop from './design-item-offline-shop.vue'
import designItemGoods from './design-item-goods.vue'
import designItemCoupon from './design-item-coupon.vue'
import designItemDiscount from './design-item-discount.vue'
import designItemSeckill from './design-item-seckill.vue'
/**
 * designShopBanner, designStore,
 *
 * @type {Array}
 */
var compSettingList = [],
    components = {},
    compList = [
        designItemRich, designItemGoods,designImage, designCube, designText, designTitle,  designSearch, designNotice,
        designItemCoupon , designItemDiscount, designItemSeckill,
        designItemLine , designItemWhitespace ,designItemOfflineshop
    ]

for (let i = 0; i < compList.length; i++) {
    let currentComponent = compList[i]
    compSettingList.push({
        name: currentComponent.name,
        title: currentComponent.otherInfo.title,
        type: currentComponent.otherInfo.type,
        group: currentComponent.otherInfo.group,
        max: currentComponent.otherInfo.max,
        options: {},
        cid: i + 1,
        //控件是否能点击
        enableAdd: true
    })
    components[currentComponent.name] = currentComponent
}

export {compSettingList, components}
